package com.lsc.blog.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lsc.blog.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 上河图
 * @since 2020-10-06
 */
@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {
    //这个就不用写sql语句了。
    User getById(@Param("id") int id);

    User getOne(@Param("wrapper") QueryWrapper<User> wrapper);

}
